const fs = require('fs');  
const path = require('path');  
const ttf2woff = require('ttf2woff');

module.exports = function(opt, ttfFont) {
  // svg创建成功， 再创建ttf
  let woff = ttf2woff(ttfFont);
  let woffFont = new Buffer(woff.buffer);
  
  fs.writeFileSync(opt.woffPath, woffFont);
};
